package com.design.mode.composite;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-04-08 10:13:37
 */
@Data
@AllArgsConstructor
public abstract class OrgComponent {

    private String name;
    private String des;

    protected void add(OrgComponent component) {
        throw new UnsupportedOperationException();
    }

    protected void delete(OrgComponent component) {
        throw new UnsupportedOperationException();
    }

    protected abstract void print();
}
